package com.bytezero.bank;
/**
 * 
 * @Description 
 * @author  Bytezero·zhenglei!      Email:420498246@qq.com
 * @version
 * @date 2021年9月15日下午11:53:31
 * @
 *
 */
public class BankTest
{
	public static void main(String[] args) 
	{
		Bank bank = new Bank();
		
		
		bank.addCustomer("Byte", "zero");
		
		
		//连续操作
		bank.getCunstomer(0).setAccount(new Account(2000));
		
		bank.getCunstomer(0).getAccount().withdraw(500);
		
	    double balance	= bank.getCunstomer(0).getAccount().getBalance();
		
	    System.out.println("客户"+bank.getCunstomer(0).getFirstName()+"的账户余额为："+balance);
		
	    System.out.println("*******************************");
	    
        bank.addCustomer("Byte2", "zero2");
		
		bank.getCunstomer(1).setAccount(new Account(2000));
		
		bank.getCunstomer(1).getAccount().withdraw(500);
		
	    double balance1	= bank.getCunstomer(1).getAccount().getBalance();
		
	    System.out.println("客户"+bank.getCunstomer(1).getFirstName()+"的账户余额为："+balance);
	
	
	    System.out.println("银行客户的个数为："+bank.getNumberOfCustomers());
	
	}
}
